<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var re1 = new RegExp("\\d");
			var re2 = /^\d{3,8}$/;
			var str = "12g3a456b78d9a0";
			var res = re2.compile(str);
			document.write(res);
		</script>
	</body>
</html>
